home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / SmartReadArgs.lha / smartreadargs / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-03  |  428 b   |  22 lines

  1. /* Debuggin defines used by SmartReadArgs */
  2.  
  3. #ifdef __GNUC__
  4. /* Debug output goes to stdout for GCC as debug.lib doesn't seem to be
  5.  * included in Geek Gadgets' distribution */
  6. #include <clib/alib_stdio_protos.h>
  7. #define bug printf
  8.  
  9. #else
  10. /* Debug output goes to serial port/sushi debug console */
  11. #define bug kprintf
  12. extern void kprintf(char *fmt,...);
  13. #endif
  14.  
  15. #ifdef DEBUG_CODE
  16. #define D(x)     x
  17. #else
  18. #define D(x)
  19. #endif
  20.  
  21.  
  22.